package com.king.tv.http;
import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

/**
 * Created by Answer on 2018/2/27.
 */

public class ObjectLoader {
protected <T>Observable<T> observe(Observable<T> observable){
    return observable.subscribeOn(Schedulers.io()).unsubscribeOn(Schedulers.io()).observeOn(AndroidSchedulers.mainThread());
}
}
